Produced by Araxis Merge on 2023-03-13 03:01:18 +0000. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | Porto v4.0.4/Porto Theme/app/design/frontend/Smartwave/porto/WeltPixel_Quickview/web/js | weltpixel_quickview.js | 2016-08-31 10:57:40 +0000 |
| 2 | Porto v4.0.5/Porto Theme/app/design/frontend/Smartwave/porto/WeltPixel_Quickview/web/js | weltpixel_quickview.js | 2023-02-14 11:09:25 +0000 |
| Description | Between Files 1 and 2 | |
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 102 |
| Changed | 1 | 5 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| Whitespace | Consecutive whitespace is treated as a single space |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
| Active line-pairing rules |
No regular expressions were active.
| 1 | var enable_quickview = true; | 1 | var enable_quickview = true; | |||
| 2 | define([ | 2 | define([ | |||
| 3 | 'jquery', | 3 | 'jquery', | |||
| 4 | 'magnificPopup' | 4 | 'magnificPopup' | |||
| 5 | ], function ($, magnificPopup) { | 5 | ], function ($, magnificPopup) { | |||
| 6 | "use strict"; | 6 | "use strict"; | |||
| 7 | 7 | |||||
| 8 | return { | 8 | return { | |||
| 9 | displayContent: function(prodUrl) { | 9 | displayContent: function(prodUrl) { | |||
| 10 | if (!prodUrl.length) { | 10 | if (!prodUrl.length) { | |||
| 11 | return false; | 11 | return false; | |||
| 12 | } | 12 | } | |||
| 13 | 13 | |||||
| 14 | var url = window.weltpixel_quickview.baseUrl + 'weltpixel_quickview/index/updatecart'; | 14 | var url = window.weltpixel_quickview.baseUrl + 'weltpixel_quickview/index/updatecart'; | |||
| 15 | var showMiniCart = parseInt(window.weltpixel_quickview.showMiniCart); | 15 | var showMiniCart = parseInt(window.weltpixel_quickview.showMiniCart); | |||
| 16 | 16 | |||||
| 17 | window.weltpixel_quickview.showMiniCartFlag = false; | 17 | window.weltpixel_quickview.showMiniCartFlag = false; | |||
| 18 | 18 | |||||
| 19 | $.magnificPopup.open({ | 19 | $.magnificPopup.open({ | |||
| 20 | items: { | 20 | items: { | |||
| 21 | src: prodUrl | 21 | src: prodUrl | |||
| 22 | }, | 22 | }, | |||
| 23 | type: 'iframe', | 23 | type: 'iframe', | |||
| 24 | closeOnBgClick: false, | 24 | closeOnBgClick: false, | |||
| 25 | preloader: true, | 25 | preloader: true, | |||
| 26 | tLoading: '', | 26 | tLoading: '', | |||
| 27 | callbacks: { | 27 | callbacks: { | |||
| 28 | open: function() { | 28 | open: function() { | |||
| 29 | $('.mfp-preloader').css('display', 'block'); | 29 | $('.mfp-preloader').css('display', 'block'); | |||
| 30 | }, | 30 | }, | |||
| 31 | beforeClose: function() { | 31 | beforeClose: function() { | |||
| 32 | $('[data-block="minicart"]').trigger('contentLoading'); | 32 | $('[data-block="minicart"]').trigger('contentLoading'); | |||
| 33 | $.ajax({ | 33 | $.ajax({ | |||
| 34 | url: url, | 34 | url: url, | |||
| 35 | method: "POST" | 35 | method: "POST" | |||
| 36 | }); | 36 | }); | |||
| 37 | }, | 37 | }, | |||
| 38 | close: function() { | 38 | close: function() { | |||
| 39 | $('.mfp-preloader').css('display', 'none'); | 39 | $('.mfp-preloader').css('display', 'none'); | |||
| 40 | }, | 40 | }, | |||
| 41 | afterClose: function() { | 41 | afterClose: function() { | |||
| 42 | /* Show only if product was added to cart and enabled from admin */ | 42 | /* Show only if product was added to cart and enabled from admin */ | |||
| 43 | if (window.weltpixel_quickview.showMiniCartFlag && showMiniCart) { | 43 | if (window.weltpixel_quickview.showMiniCartFlag && showMiniCart) { | |||
| 44 | $("html, body").animate({ scrollTop: 0 }, "slow"); | 44 | $("html, body").animate({ scrollTop: 0 }, "slow"); | |||
| 45 | setTimeout(function(){ | |||||
| 46 | $('.action.showcart').trigger('click'); | |||||
| 47 | }, 1000); | |||||
| 48 | } | 45 | } | |||
| 49 | } | 46 | } | |||
| 50 | } | 47 | } | |||
| 51 | }); | 48 | }); | |||
| 52 | } | 49 | } | |||
| 53 | }; | 50 | }; | |||
| 54 | 51 | |||||
| 55 | }); | 52 | }); |
Araxis Merge (but not the data content of this report) is Copyright © 1993–2019 Araxis Ltd (www.araxis.com). All rights reserved.